package com.GDOU.service.serviceImp;

import com.GDOU.bean.LeaveType;
import com.GDOU.bean.LeaveTypeExample;
import com.GDOU.mapper.LeaveTypeMapper;
import com.GDOU.service.LeaveTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LeaveTypeServiceImpl implements LeaveTypeService {
    @Resource
    LeaveTypeMapper leaveTypeMapper;


    @Override
    public List<LeaveType> getAll() {
        List<LeaveType> list = leaveTypeMapper.selectByExample(new LeaveTypeExample());
        return list;
    }




}
